<link rel="stylesheet" href="../scripts/uniform/css/uniform.default.css" media="screen" />
<script src="../scripts/uniform/jquery.uniform.js"></script>
<script type="text/javascript">
    $(document).ready(function()
    {
        $("select").uniform();
    });
</script>
<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPhamCap2 = 0;
    
    if(isset($_POST['MaLoaiSanPhamCap2']))
        $MaLoaiSanPhamCap2 = $_POST['MaLoaiSanPhamCap2'];
    
    $loaisanphamc3 = new loaisanphamc3bs();
    $loaisanphamc3->MaLoaiSanPhamCap2 = $MaLoaiSanPhamCap2;
    $ret_loaisanphamc3 = $loaisanphamc3->getList();
    if($ret_loaisanphamc3 != null)
    {
        echo '<label>Chọn loại sản phẩm cấp 3 <span class="require">*</span></label>
            <select name="MaLoaiSanPhamCap3" id="MaLoaiSanPhamCap3">';
            echo "<option value='0'>---- Chọn ----</option>";
    			for($i = 0; $i < ($ret_loaisanphamc3 != false ? count($ret_loaisanphamc3) : 0); $i++)
    			{
    				echo "<option value=\"{$ret_loaisanphamc3[$i]['MaLoaiSanPhamCap3']}\">{$ret_loaisanphamc3[$i]['TenLoaiSanPhamCap3']}</option>";
    			}
    	echo '</select>';
     }
?>